﻿@model DatNuocViet.Models.New

@{
    Layout = null;
    string lang = (Session["Language"] == null) ? "vi" : Session["Language"].ToString();
    string srcClip = Model.DetailsVn.Replace("<p>", "");
    srcClip = srcClip.Replace("</p>", "");

    if (!srcClip.Contains("embed"))
    {
        if(srcClip.Contains("http://youtu.be"))
        {
            srcClip = srcClip.Replace("http://youtu.be", "http://www.youtube.com/embed");
        }
        else
        {
            srcClip = "http://www.youtube.com/embed/" + srcClip;
        }
    }
}

<iframe width="230" height="173" src="@srcClip" frameborder="0" allowfullscreen></iframe>
